from flask import Flask
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config.from_object('setting.DevConfig')

# 创建数据库对象
db = SQLAlchemy(app)

#只有在app对象之后声明，用于导入model否则无法创建表
from blog.model import User,Category
from blog.controller import Message